package cn.nkpro.elcube.cloud;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Cloud同步事件模型
 */
public class NkCloudSyncEvent extends ApplicationEvent {


    /**
     * 消息的生产者
     */
    @Getter
    private String producerId;
    /**
     * 消息体类型
     */
    @Getter
    private String type;
    /**
     * 消息内容对象
     */
    @Getter
    private Object object;


    public NkCloudSyncEvent(Object source, String producerId, String type, Object object) {
        super(source);
        this.producerId = producerId;
        this.type = type;
        this.object = object;
    }
}
